import * as types  from '../constants/helperTypes';
import { getItem } from '../utils';

const initialObject = {
    city: []

};
const initialState = getItem('helper') || initialObject;
export default function act(state = initialState, action) {
    switch (action.type) {
        case types.FETCH_GLOBAL_CONFIG:
            return {
                ...state,
                city: action.data.data.citys
            };

        default:
            return state;
    }
}